//
//  receivebasic.m
//  tcpoctest
//
//  Created by apple on 13-5-2.
//  Copyright (c) 2013年 gump. All rights reserved.
//

#import "receivebasic.h"
#import "LogicSB.h"

@implementation receivebasic

-(id)initWithSB:(LogicSB *)sb
{
    self = [super init];
    if (self != nil) {
        logicsb = sb;
        imainIndex = ID_MI_HB;
        isecIndex = ID_MI_HB;
    }
    
    return self;
}

-(void)processreceive
{
    if (logicsb == nil) {
        return;
    }
    
    [self ShowLog];
}

-(void)ShowLog
{
    NR_LOG(@"receive length %d mainindex %d secindex %d %@ \r\n"
                  ,logicsb.mrestLength
                  ,imainIndex
                  ,isecIndex
                  ,self);
}

-(void)SetMainIndex:(int)im withSecIndex:(int)is
{
    imainIndex = im;
    isecIndex = is;
}

@end
